decorative banner

Layer sub-objects attributes and methods


    Comp or Footage source Returns the source Comp or source Footage object for the layer. Default time is adjusted to the time in the source. For example, source.layer(1).position.

    Effect effect(name) {name is a string} Returns an Effect object. After Effects finds the effect by its name in the Effect Controls window. The name can be the default name or a user-defined name. If there is more than one effect with the same name, the effect closest to the top of the Effect Controls window is used.

    Effect effect(index) {index is a number} Returns an Effect object. After Effects finds the effect by its index in the Effect Controls window, starting at 1 and counting down from the top.

    Mask mask(name) {name is a string} Returns a layer Mask object. The name can be the default name or a user-defined name.

    Mask mask(index) {index is a number} Returns a layer Mask object. After Effects finds the mask by its index in the Timeline window, starting at 1 and counting down from the top.